package model.AttentionHouse.mapper;


import model.AttentionHouse.entity.Attentionhouse;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by Sunshine、宸 on 2019/6/24.
 */
@Mapper
public interface AttentionHouseMapper {

    /**
     * 查看所有
     * @return
     */
    @Select("select * from attentionhouse")
    List<Attentionhouse> findAll();


    /**
     * 根据id删除
     * @param houseId
     */
   @Delete("delect * from attentionhouse where house_id=#{value}")
    void delById(Integer houseId);

   @Select("select * from attentionhouse where house_id=#{value}")
   Attentionhouse findById(Integer house_id);
}
